<include file="Core:Public:header" />
{:W('Navigation')}
<div class="body-right">
	<div class="row-table">
		<div class="row-table-title">绩效考核评分</div>
		<div class="row-table-body form-horizontal">
			<form method="post" action="{:U('hrm/appraisalpoint/edit')}">
				<input type="hidden" name="id" value="{$appraisalmanager.appraisal_manager_id}" />
				<p class="form-title">
					绩效考核评分&nbsp;&nbsp;
					<a href="javascript:void(0);" onclick="close_page()">退出</a>
					<input type="submit" class="pull-right btn btn-primary btn-xs" value="提交">
				</p>
				<!-- CSS用了内嵌样式，待修改 -->
				<div class="form-group">
					<div class="col-sm-12" style="text-align:center;font-size: 20px;margin-top: 15px;"><b>{$appraisalmanager.name}</b></div>
				</div>
				<div class="form-group">
					<label for="name" class="col-sm-3 control-label">启动时间：{$appraisalmanager.start_time|date='Y-m-d',###}</label>
					<label for="name" class="col-sm-3 control-label">截止时间：{$appraisalmanager.end_time|date='Y-m-d',###}</label>
					<label for="name" class="col-sm-2 control-label">类型：{$appraisalmanager.template.category.name}</label>
					<label for="name" class="col-sm-3 control-label">
						考核对象：
						<select name="examinee_user_id">
							<volist name="appraisalmanager['examinee_user']" id="vo">
								<if condition="!in_array($vo['user_id'], $have_point_user)">
									<option value="{$vo['user_id']}">{$vo.name}</option>
								</if>
							</volist>
						</select>
					</label>
				</div>
				<div class="form-group">
					<div class="col-sm-12" id="itembox">
						<table class="table table-bordered">
							<tr>
								<td class="col-sm-2">考核内容</td>
								<td class="col-sm-4">评分细则</td>
								<td class="col-sm-1">标准分</td>
								<td class="col-sm-1">评分范围</td>
								<td class="col-sm-1">得分</td>
								<td class="col-sm-2">评语</td>
								
							</tr>
							<volist name="appraisalmanager['template']['score']" id="vo">
							<tr>
								<td>{$vo.name}</td>
								<td><pre>{$vo.description}</pre></td>
								<td>{$vo.standard_score}</td>
								<td>{$vo.low_scope}&nbsp;至&nbsp;{$vo.high_scope}</td>
								<td><input type="text" name="point[{$vo.score_id}]" class="form-control col-sm-2" /></td>
								<td><textarea class="form-control" name="comment[{$vo.score_id}]"></textarea></td>
							</tr>
							</volist>
						</table>
					</div>
				</div>
			</form>
		</div>
	</div>
</div>
<div class="clear"></div>
<script type="">
	function close_page(){
		if(confirm('确定要关闭页面，退出本次打分吗？')){
			window.close();
		}
	}
</script>
<include file="Core:Public:alert" />
<include file="Core:Public:footer" />